<%@page import="com.binhanh.sql.bo.Video"%>
<%@page import="com.binhanh.controller.uploads.ExcelHandler"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Trạng thái cập nhật file</title>

<style>
table {
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid black;
}
</style>
</head>

<body>
	<div id="result">
		<p>Path: ${path}</p>
		<h3>${requestScope["message"]}</h3>
	</div>

	<div>
		<p>
			You have choose author
			<%=request.getAttribute("path")%></p>
		<table cellpadding = "0" cellspacing = "0">
			<%
				ArrayList<Video> lst = ExcelHandler.readVideoExcel((String) request
						.getAttribute("path"));

				for (int i = 0; i < lst.size(); i++) {
			%>

			<tr>
				<td><%=lst.get(i).getTitle()%></td>
				<td><%=lst.get(i).getUrl()%></td>
			</tr>

			<%
				}
			%>
		</table>
	</div>
</body>
</html>
